﻿Imports System.Windows.Forms

Public Class MDIParent1

    Private Sub IngresarToolStripMenuItem1_Click(sender As System.Object, e As System.EventArgs) Handles IngresarToolStripMenuItem1.Click
        Dim ChildForm As New IngresarProductos
        'Se crea un formularrio
        ChildForm.MdiParent = Me
        'Se mete al MDI
        ChildForm.Show()
        'Muestra el Formulario
    End Sub

    Private Sub MDIParent1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

    End Sub

    Private Sub NuevoUsuarioToolStripMenuItem_Click(sender As System.Object, e As System.EventArgs) Handles NuevoUsuarioToolStripMenuItem.Click

    End Sub

    Private Sub IngresarToolStripMenuItem_Click(sender As System.Object, e As System.EventArgs) Handles IngresarToolStripMenuItem.Click

        Dim IngresarUsuario As New IngresarUsuario
        IngresarUsuario.MdiParent = Me
        IngresarUsuario.Show()

    End Sub

    Private Sub InsertarPedidoToolStripMenuItem_Click(sender As System.Object, e As System.EventArgs) Handles InsertarPedidoToolStripMenuItem.Click

        Dim IngresarUsuario As New InsertarPedido
        InsertarPedido.MdiParent = Me
        InsertarPedido.Show()

    End Sub

    Private Sub BuscarToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BuscarToolStripMenuItem.Click
        Dim ChildForm As New BuscarProducto
        'Se crea un formularrio
        ChildForm.MdiParent = Me
        'Se mete al MDI
        ChildForm.Show()
        'Muestra el Formulario
    End Sub
End Class
